x86/pci: introduce hvm_pci_decode_addr
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 25 Aug 2017 12:08:19 +0000 (14:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Aug 2017 12:08:19 +0000 (14:08 +0200)
commita16e826da9e891ca2b67a45afafe76e995958fc0
tree1fb3741ee100ef594ae0aaa4d37a6f7a9c6ca37b
parent34828425d36b560adfe96430b9b83dfb0f66f2a8
x86/pci: introduce hvm_pci_decode_addr

And use it in the ioreq code to decode accesses to the PCI IO ports
into bus, slot, function and register values.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/ioreq.c
xen/include/asm-x86/hvm/io.h